cmake_minimum_required(VERSION 3.5.1)

add_library(edge_creator  edge_creator.cc)
target_link_libraries(edge_creator   
                                routing_routing_gflags
                                routing_proto )

add_library(node_creator   node_creator.cc)
target_link_libraries( node_creator    
                                    routing_proto)


add_library(graph_creator  graph_creator.cc)
target_link_libraries( graph_creator
                                    edge_creator
                                    node_creator
                                    common::vehicle_config_helper
                                    map::opendrive_adapter
)




add_executable(topo_creator  topo_creator.cc)
target_link_libraries(  topo_creator
                                    graph_creator
                                    map::hdmap_util
)




install( TARGETS     edge_creator
                    graph_creator
                    node_creator
                    topo_creator

        EXPORT  apollo-export
        LIBRARY DESTINATION lib
        ARCHIVE DESTINATION lib
        RUNTIME DESTINATION bin
        INCLUDES DESTINATION .
        )
